home *** CD-ROM | disk | FTP | other *** search
- Path: coretech.com!not-for-mail
- From: hoggy@coretech.com (Brian)
- Newsgroups: comp.sys.amiga.datacomm
- Subject: Re: Staying Online
- Date: 28 Jan 1996 14:17:05 GMT
- Organization: MY place
- Message-ID: <4eg0h1$7fm@homer.alpha.net>
- References: <4dlqnt$hgp@bud.shadow.net> <30FE7930.1B87@topcity.mn.org>
- NNTP-Posting-Host: calumet.coretech.com
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
-
- on 26 Jan 1996 01:44:17 GMT, Herbert Klackl (hak@vip.at) wrote:
- :
- : Well, unfortunately there is no global solution to this problem due to the
- : fact that there are to many variables in this game (e.g. type of Amiga;
- : accelerator card yes/no; serial.device replacement yes/no/which; dynamic IP-
- : Address yes/no etc.).
- :
- : I *might* be able to help you on this one if you send me your full
- : configuration. Another solution would be to get in contact with Holger Kruse
- : (kruse@america.com) the author of the ppp.device. He seems to be a very
- : helpfull guy who offered his assistance more then once in this newsgroup.
- :
- : Sorry that I couldn't be more specific, but if you write the error you get is
- : "opendevice: resource allocation failure" I can at least think of this
- : possibilities and there might even be more:
- : - There dosen't exist a "DEVS:Sana2/ppp.device"
- : - Wrong unit number in "AmiTCP:db/interfaces"
- : - No "ENV:Sana2/ppp0.config"
- :
- :
- :
- :
- : Bye Herby
- :
-
- --
- here's my startnet script:
-
- .key IP,HN/K,DEST/K,MASK/K,GW/K,USER/K,SRV/S,BOOTP/S,UMASK/K,S2CF/K,S2OPT/K,IFACE/K,DEBUG/S
- .bra {
- .ket }
- ;
- ; AmiTCP/IP startnet script
- ;
- ; Copyright ⌐ 1994 AmiTCP/IP Group,
- ; NSDi - Network Solutions Development Inc., Finland
- ; All rights reserved.
- ;
- ; *NOTE* NORMALLY YOU SHOULD USE THE PROVIDED CONFIGURATION UTILITY
- ; *NOTE* TO CHANGE THE CONFIGURATION. IF YOU NEED TO CHANGE THE
- ; *NOTE* CONFIGURATION MANUALLY, RESTRICT ANY MODIFICATIONS TO THIS
- ; *NOTE* "DEF" SECTION.
- ;
- ; IP address if known, _nothing_ otherwise
- .def IP
- ; Our full host name and aliases if known, _nothing_ otherwise
- ; (if this is set, the IP _must_ be set, too)
- .def HN
- ; The destination address, needed only if GW is not good destination
- .def DEST
- ; netmask if known, _nothing_ otherwise
- .def MASK
- ; IP address of the default gateway if known, _nothing_ otherwise
- .def GW
- ; Default login name
- .def USER hoggy
- ; User's file creation mask
- .def UMASK 022
- ; "SRV" if servers are used, _nothing_ otherwise
- .def SRV SRV
- ; "BOOTP" if bootstrap protocol is used, _nothing_ otherwise
- .def BOOTP
- ; Interface name
- .def IFACE ppp0
- ; Sana-II device configuration file, _nothing_ otherwise
- .def S2CF ppp0.config
- ; Sana-II device configuration to be stored into the configuration file
- .def S2OPT "8n1.device 0 57600 0.0.0.0 7WIRE FCS=0 VJCMODE=2 MTU=1500 SHARED CD DIALSCRIPT=amitcp:db/dialscript"
- ;
- ; *NOTE* YOU SHOULD NOT NEED TO EDIT ANYTHING BELOW. IF YOU NEED TO ADD
- ; *NOTE* CONFIGURATIONS OF ADDITIONAL INTERFACES OR TO START UTILITIES,
- ; *NOTE* DO IT IN THE AmiTCP:db/User-Startnet.
- ;
- ; Set the failat level so that the errors can be handled by the script
- FailAt 21
- ; Log in
- echo
- echo login: {USER}
- AmiTCP:bin/login -f {USER}
- AmiTCP:bin/umask {UMASK}
- run AmiTCP:AmiTCP {DEBUG}
- WaitForPort AMITCP
- If NOT Warn
- ; Create Sana2 configuration file if used
- If NOT X EQ "X{S2CF}"
- ; Assure that ENV:Sana2 exists
- If NOT Exists ENV:Sana2
- MakeDir ENV:Sana2
- EndIf
- ; Create configuration file
- Echo "{S2OPT}" >ENV:Sana2/{S2CF}
- EndIf
- ; Do we need loopback?
- If X EQ "X{SRV}"
- Set LOOPBACK=""
- Else
- Set LOOPBACK="LOOPBACK"
- EndIf
- ; Configure interface
- AmiTCP:bin/bootpconfig {IFACE} IP {IP$*} DEST {DEST$*} MASK {MASK$*} GW {GW$*} $LOOPBACK {BOOTP} {DEBUG}
- If NOT Warn
- If NOT X EQ "X{HN}"
- rx "address AMITCP; 'ADD HOST {IP} {HN}'"
- Else
- If NOT X EQ "X{DEBUG}"
- echo "Quering Name Server for the host name..."
- EndIf
- EndIf
- ; setenv HOSTNAME `AmiTCP:bin/hostname`
- Assign TCP: Exists >NIL:
- IF Warn
- Mount TCP: from AmiTCP:devs/Inet-Mountlist
- EndIf
- ; Start the internet `super server' if wanted
- If NOT X EQ "X{SRV}"
- If X EQ "X{DEBUG}"
- Run <NIL: >NIL: AmiTCP:bin/inetd
- Else
- Run AmiTCP:bin/inetd {DEBUG}
- EndIf
- EndIf
- ;
- ; Configure any additional interfaces & start utilities in
- ; AmiTCP:db/User-Startnet
- ;
- If Exists AmiTCP:db/User-Startnet
- Execute AmiTCP:db/User-Startnet
- EndIf
- Else
- Echo Interface {IFACE} configuration failed!
- Echo Stopping AmiTCP
- ; AmiTCP:bin/stopnet FLUSH
- EndIf
- Else
- Echo AmiTCP couldn't be started!
- EndIf
-
- ; save IPADDRESSes to ENVARC to restart after crash ?????
- copy ENV:ppp0IPLocal to ENVARC:
- copy ENV:ppp0IPRemote to ENVARC:
-
- ; EOF
-
-
- Although I dont think it matters, here is my dialscript:
-
-
- ECHO ON
- TIMEOUT 2000
- SEND "AT&D0DT6382618"
- WAIT "CONNECT"
- DELAY 50
- SEND ""
- WAIT "login:"
- SEND "(name)"
- WAIT "assword:"
- SEND "(password)
-
-
- If I lose the connection and issue the startnet command again (without
- resetting) it just dials up again without a problem.
-
- But after my machine crashes(the 'RS' light turns off on my modem)
- and I execute the startnet script, my modem hangs up and I get error
- messages as if my modem wasn't able to connect. The Dialer window
- pops up even though I have the CD option set - it is at this point
- where my modem hangs up and the dialer window just sits there.
-
- When I had the (unregistered)AmiTCP demo 4, I can remember having
- to use a term program(Term) to reenter my name and password(I have no
- idea how their machine got 'reset', but it did) and then I would
- execute the startnet script and all was fine again.
-
-
- (setup info below) - dynamic PPP
-
- Thanks very much,
- hoggy@coretech.com
-
-
-
- --
-
- AMIGA 4000/040/18M--1.5G + 150M Bernoulli + SOON to be JAZZ drive(disks are *MUCH* cheaper!! :-)))
- (DKB4091 SCSI-II controller)
- ONLINE with a Pratical Peripherals 'PC288LCD', and a dedicated 'no frills' phone line.
- Using registered AmiTCP 4.2 and reg. PPP1.40beta.
-
- "I don't wanna go to work, I don't wanna go to school, I don't wanna eat, sleep, or think. All I
- wanna do is surf ----- DA NET!!"
-